<?php
$listCate        = $this->listTourCate;
$listCruise      = $this->listCruiseCate;
$listTourStyle   = $this->listTourStyle;
$listCountry     = $this->listCountry;
//Zend_Debug::dump($listCountry);die();
$listComingEvent = $this->listComingEvent;
?>
<div class="span12" id="content-left-1">
    <?php if($listCate): ?>
        <?php foreach($listCate as $k => $v): ?>
        	<?php if($v['list_tour']): ?>
        	<div class="block">
        		<div class="block-title">
        			<h2>
        			    <a href="<?php echo '/tour/1/'.$v['id'].'-'. 1 . '-'.str_replace(' ', '-' ,trim($v['tour_category_title'])) .'.html';?>">
        			        <?php echo $v['tour_category_title'] ?>
        			    </a>
        			</h2>
        		</div>
                <div class="block-content-home">
                    <?php foreach($v['list_tour'] as $kt => $vt): ?>
                    <?php $url = "/tour/detail/". $vt['id'].'-'.str_replace(' ', '-' ,trim($vt['title'])).'.html'; ?>
                        <div class="block-list-home">
                            <div class="block-list-title">
                                <a href="<?php echo $url ?>" title="<?php echo $vt['title'] ?>">
                                    <?php echo $this->snippet($vt['title']); ?>
                                </a>
                            </div>
                            <div class="block-list-content">
            					<a href="<?php echo $url ?>"><img class="thumbnail" src="<?php echo $vt['thumbnail']; ?>" /></a>
                				<div class="overview">
                					<?php echo $this->snippet($vt['overview'], 150);  ?>
                				</div>
                				<div class="view-detail">
                				    <a href="<?php echo $url ?>" class="see-more"><?php echo $this->translate('See more >>'); ?></a>
                				</div>
                            </div>
            			</div>
        			<?php endforeach; ?>
                </div>
        	</div>
        	<?php endif; ?>
    	<?php endforeach; ?>
	<?php endif; ?>
	
	<?php if($listCruise): ?>
	<div class="block" style="padding-bottom: 20px;">
		<div class=block-title>
			<h2><a href="<?php echo '/cruise/1/'.$v['id'].'-'. $v['id'] . '-'.str_replace(' ', '-' ,trim($this->cruiseCategoryTitle)) .'.html';?>"><?php echo $this->cruiseCategoryTitle; ?></a></h2>
		</div>
		<div class="block-content-home">
            <?php foreach($listCruise as $key => $value): ?>
                <div class="block-cruise-type">
        		    <?php if($value['list_cruise']): ?>
               		<h4><?php echo $value['cruise_type_title']; ?></h4>
                	<div class="" style="margin-left:10px;">
                		<ul>
                		    <?php foreach($value['list_cruise'] as $k => $v):?>
                		    <?php $url = "/". str_replace(' ', '-' ,trim($this->cruiseCategoryTitle)) . '/'. str_replace(' ', '-' ,trim($v['name'])) . '-' .$v['link_id'] .'.html'; ?>
                				<?php if(isset($v['list_child_cruise']) &&  $v['list_child_cruise']): ?>
                					<?php foreach($v['list_child_cruise'] as $childCruise): ?>
                						<?php $urlChild = "/". str_replace(' ', '-' ,trim($this->cruiseCategoryTitle)). '/'. str_replace(' ', '-' ,trim($childCruise['name'])). '-' .$childCruise['link_id'] .'.html'; ?>
                						<li class="cruise-list-home"><a href="<?= $urlChild ?>"><?php echo $childCruise['name']; ?></a></li>
                					<?php endforeach; ?>
                				<?php else: ?>
	                				<li class="cruise-list-home"><a href="<?php echo $url; ?>"><?php echo $v['name'];?></a></li>
                				<?php endif; ?>
                			<?php endforeach; ?>
                		</ul>
                	</div>
        			<?php endif; ?>
                </div>
        	<?php endforeach; ?>
         </div>
    </div>
    <?php endif; ?>

	<!-- fix : Vietnam trip in style -->
	<div class="block" style="padding-bottom: 20px;">
		<div class=block-title>
			<h2><a href="#"><?php echo $this->translate('Viet_Nam_trip_in_Style'); ?></a></h2>
			<div class="clear"><img class="spacer" src="/static/default/images/spacer.gif" /></div>
		</div>
		<div class="block-content-home">
    		<?php if($listTourStyle): ?>
    		<?php foreach($listTourStyle as $k => $v): ?>
			<div class="block-content-list list-trip-in-style">
				<img src="/static/default/images/bulleted.png" class="bulleted"/>
				<a href="<?php echo '/tour/trip-in-style/1/'.$v['id'].'-'. 1 . '-'.str_replace(' ', '-' ,trim($v['tour_style_title'])) .'.html';?>"><?php echo $v['tour_style_title'] ?></a>
			</div>
			<?php endforeach; ?>
    		<?php endif; ?>
		</div>
	</div>

	<!-- hotel -->
    <div class="block" style="padding-bottom: 20px;">
		<div class=block-title>
			<h2><a href="/hotel"><?php echo $this->translate('Hotel_&_Resorts'); ?></a></h2>
			<div class="clear"><img class="spacer" src="/static/default/images/spacer.gif" /></div>
		</div>
        <?php if($listCountry): ?>
        <?php foreach($listCountry as $k => $v): ?>
			<div class="block-content-home">
			    <div class="block-hotel-tilte">
			        <div style="width:12px;float:left;margin-top:12px;">
				        <img src="/static/default/images/bulleted.png" class="bulleted" />
				    </div>
				    <div style="width:120px;float:left;">
				        <h4><a href="/hotel"><?php echo $v['name'] ?></a></h4>
				    </div>
				</div>
				<div class="block-hotel-content">
					<?php if($v['area']): ?>
						<table style="margin-left:-10px;">
							<?php foreach($v['area'] as $kA => $vA): ?>
								<tr>
									<td width="120px"><b><?php echo trim($vA['name']); ?> : </b></td>
									<td>
										<?php foreach($vA['list_region'] as $key => $value): ?>
					            			<div class="block-content-hotel-list-vn">
					            				<a href="<?php echo '/hotel/'.$value['id'].'/'.str_replace(' ', '-' ,trim($value['name'])) .'.html';?>" style="text-decoration: underline;"><?php echo $value['name']; ?></a>
					            				<?php if(($key + 1) != count($vA['list_region'])): ?>
					            				    <p class="inline-space">|</p>
					            				<?php endif; ?>
					            			</div>
					        			<?php endforeach; ?>
									</td>
								</tr>
							<?php endforeach; ?>	
						</table>
					<?php else: ?>
	        			<?php if($v['list_region']): ?>
	        			<?php foreach($v['list_region'] as $key => $value): ?>
	            			<div class="block-content-hotel-list">
	            				<a href="<?php echo '/hotel/'.$value['id'].'/'.str_replace(' ', '-' ,trim($value['name'])) .'.html';?>" style="text-decoration: underline;"><?php echo $value['name']; ?></a>
	            				<?php if(($key + 1) != count($v['list_region'])): ?>
	            				    <p class="inline-space">|</p>
	            				<?php endif; ?>
	            			</div>
	        			<?php endforeach; ?>
	        			<?php endif; ?>
        			<?php endif; ?>
    			</div>
			</div>
		<?php endforeach; ?>
		<?php endif; ?>
	</div><!-- //end hotel -->
</div>

<div class="span4" id="content-right-1">
    <div class="block-right-1">
        <div class="block-right-1-title">
        	<h3><?php echo $this->translate('Coming_Events'); ?></h3>
        </div>
    	<div class="block-right-1-content">
    	    <?php if($listComingEvent): ?>
        	    <?php foreach($listComingEvent as $k => $v): ?>
            		<div class="coming-event">
            			<img src="/static/default/images/bulleted.png" class="bulleted"/>
            			<a href="<?php echo "/mice/detail/". M_Event::TYPE_EVENT .'-'. $v['id'].'-'.str_replace(' ', '-' ,trim($v['title'])).'.html'; ?>"><?php echo $v['title'] ?></a>
            		</div>
        		<?php endforeach; ?>
    		<?php endif; ?>
    	</div>
    </div>
	<div class="block-right-1">
		<?php echo $this->render('right-render/support.phtml'); ?>
	</div>
</div>


<!--
<?php /*
	<?php //if($listCruise): ?>
	<?php //foreach($listCruise as $k => $v): ?>
	<div class="block" style="padding-bottom: 20px;">
<!-- 		<div class=block-title> -->
			<h2><a href="<?php echo '/cruise/1/'.$v['id'].'-'. $v['id'] . '-'.str_replace(' ', '-' ,trim($v['cruise_category_title'])) .'.html';?>"><?php echo $v['cruise_category_title'] ?></a></h2>
<!-- 		</div> -->
<!-- 		<div class="block-content-home"> -->
		<?php if($v['list_cruise']): ?>
		<?php foreach($v['list_cruise'] as $kc => $vc): ?>
        	<?php $url = "/cruise/detail/". $vc['id'].'-'.str_replace(' ', '-' ,trim($vc['name'])).'.html'; ?>
<!-- 			<div class="block-content-home-list"> -->
<!-- 				<img src="/static/default/images/bulleted.png" class="bulleted"/> -->
				<a href="<?php echo $url; ?>"><?php echo $vc['name'] ?></a>
<!-- 			</div> -->
		<?php endforeach; ?>
		<?php endif; ?>
<!-- 		</div> -->
<!-- 	</div> -->
	<?php endforeach; ?>
	<?php endif; ?>
*/ ?>
 -->